package com.aurora.app.entity;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.aurora.base.entity.BaseEntity;

@Entity
@Table(name="tb_thing_story_image")
public class ThingStoryImage extends BaseEntity {
	private ThingStory thingStory;
	private String path;
	
	
	@Column(name="f_path")
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	@ManyToOne(cascade = {CascadeType.REFRESH}, optional = false, fetch = FetchType.LAZY)
	@JoinColumn(name = "f_thing_story_id")
	public ThingStory getThingStory() {
		return thingStory;
	}
	public void setThingStory(ThingStory thingStory) {
		this.thingStory = thingStory;
	}
}
